<extend name="Index::index"/>

            <!--左菜单区域-->

            <!-- 左菜单区域结束-->

            <!--右内容区域-->
    <block name="table"><div class="layout-content">

                <div class="page-title">影院管理</div>

                <div class="content-top">
                    <ul class="top-nav">
                        <li class="active"><span>影院列表</span></li>
                        <a href="create.html" class="btn btn-sm btn-success pull-right"><span
                                class="glyphicon glyphicon-plus"></span> 添加影城</a>
                    </ul>
                    <div class="clearfix"></div>
                </div>
                <!--content-main start-->
                <div class="container-fluid content-main">
                    <div class="row">
                        <div class="col-md-12">

                            <!--<div class="alert alert-info">
                                <i class="icon-info-sign"></i> 提示信息提示信息提示信息提示信息提示信息提示信息
                            </div>-->

                            <div class="hidden ui-tips bg-info" style="display: non">
                                <span class="icon glyphicon glyphicon-info-sign"></span>
                                <span>{$result}</span>
                            </div>
                            <form  action="{:U('Cinema/index')}" method="get" class="form-inline form-search mt15">
                                <div style="margin-left: 350px;" class="form-group">
                                    <select name="key" class="form-control input-sm">
                                        <option value="name">影院搜索</option>
                                        <option value="address">地址搜索</option>
                                    </select>
                                    <input type="text" name="name" placeholder="请输入搜索项" class="form-control input-sm"/>
                                    <button type="submit" class="btn btn-success btn-sm">
                                        <span class="glyphicon glyphicon-search"></span> 搜索
                                    </button>
                                    <a href="{:U('Cinema/index')}" class="btn btn-default btn-sm">
                                        <span class="glyphicon glyphicon-repeat"></span> 全部</a>
                                </div>
                            </form>
                            <table class="table table-hover mt15">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>商户名</th>
                                    <th>影院名称</th>
                                    <th>影院地址</th>
                                    <th>加入时间</th>
                                    <th width="120">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name="list" item="item">
                                <tr>
                                    <td><?php echo $item['id']?></td>
                                    <td><?php echo $item['username']?></td>
                                    <td><?php echo $item['name']?></td>
                                    <td><?php echo $item['address']?></td>
                                    <td><?php echo date('Y-m-d', $item['created_at'])?></td>
                                    <td>
                                        <a href="{:U('update',['id'=>$item['id']])}">修改</a>|
                                        <a onclick="test()" href="{:U('delete',['id'=>$item['id']])}">删除</a>
                                    </td>
                                </tr>
                                </foreach>
                                </tbody>
                                <tr>
                                    <td colspan="6" style="text-align: center">
                                        {$page}{$result}
                                    </td>
                                </tr>
                            </table>
                            <div class="clearfix"></div>
                        </div>
                    </div>

                </div>
                <!--content-main end-->
            </div></block>
            <!--右内容区域结束-->
         </extend>